﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUS.ISS.ARS.Common;
using System.Runtime.Serialization;

namespace NUS.ISS.ARS.Service.Entity
{
    [DataContract]
    public class SaveResultData
    {
        [DataMember]
        public Constants.SaveStatus Status { get; set; }
        [DataMember]
        public string Message { get; set; }

        public static implicit operator SaveResultData(SaveResult saveResult)
        {
            return new SaveResultData()
            {
                Message=saveResult.Message,
                Status=saveResult.Status
            };
        }
    }
}
